import Vue from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'
import moment from 'moment'
import './js/toast'
import './js/plug'
import iView from 'iview'
import 'iview/dist/styles/iview.css';
Vue.config.productionTip = false
Vue.prototype.$baiseImg = 'http://img.yaque365.com/'
Vue.prototype.$moment = moment
router.beforeEach((to, from , next) => {
  iView.LoadingBar.start()
  next()
})
router.afterEach(() => {
  iView.LoadingBar.finish()
})
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
